import {
    createStore,
    applyMiddleware,
} from 'redux';

import thunkModdleware from 'redux-thunk';
import reducers from '../reducers';

const createStoreWithMiddleware = applyMiddleware(thunkModdleware)(createStore);


export default function initStore(initialState) {
    const store = createStoreWithMiddleware(reducers, initialState);
    return store;
}

// export 
